package com.hyl.dao;

import com.hyl.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description TODO
 * @Author com.com.hyl
 * @Date 2022/8/27 8:59
 **/
public interface SysUserDao {

	/*
	* Map<String,Object> map= new HashMap<String,Object>();
	* map.put("name","张三");
	* */
	List<SysUser> findByMap(Map<String,Object> params);

	List<SysUser> findByParam(@Param("username") String name,
	                          @Param("roleId") String roleId,
	                          @Param("offset") Integer offset);


	SysUser findById(Integer id);

	SysUser login(String account,String pwd);
}
